-define(MaxDealsForValue,4).



%CurrVal = Company.current_value 		
% if Company.dealsCountCounter == MaxDealsForValue then 		
%Company.current_value = company_val*CurrVal/2
%else: if DealVal>CurrVal -> Company.StockVal = DealVal;
		 % Company.DealCountCounter++


-record(company_stocks,{id,
						domain,
						company_name,
						general,
						total_exist, 
						company_val,
						dealsCountCounter,
						current_value,
						last_weight }).

-record(favorites,{id,
				   user_id,
				  stock_id}).

-record(users,	{id,
				name,
				money,
				value,
				profit}).

-record(user_stock_table, 	{id,
							stock_id,
							user_id,
							total,
							price}).

-record(news, 	{id,
				 date,
				headline,
				content}).

-record(bid_queue, {bid_id,
					stock_id,
					user_id,
					amount,
					price}).

-record(ask_queue, 	{ask_id,
					 stock_id,
					user_id,
					amount,
					price}).


-record(counters,{name,
				   value }).
